Fixing loadAsync Timing Issues in JSZip
Theload()methodandtheconstructorwithdata(newJSZip(data))havebeenreplacedbyloadAsync().Whenaddingafile,theoption ...,...JSZip的loadAsync函数。由于loadAsync是一个异步函数,因此我们在该函数的then方法中传入其回调函数。最终打印出来的就是读取的zip文件...。參考影片的文章的如下:
